Removed my custom math
Better code style