Altered code style to Google standard